package com.ssy.lingxi.platform.manage.model.request.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 广告能力 - 新增/修改 - 请求实体类
 * @author hsl
 * @version 2.0.0
 * @date 2022/03/11
 */
@Data
public class MemberAdvertRequest {

    /**
     * 主键id
     */
    @NotNull(message = "id不能为空", groups = {MemberAdvertRequest.Update.class})
    private Long id;

    /**
     * 标题
     */
    @NotEmpty(message = "标题不能为空", groups = {MemberAdvertRequest.Add.class, MemberAdvertRequest.Update.class})
    private String title;

    /**
     * 栏目WEB： 1-企业采购首页 -- 轮播广告
     *          2-企业采购首页 -- 顶部广告栏
     *          3.采购商机页 -- 右侧广告栏
     */
    @NotNull(message = "栏目不能为空", groups = {MemberAdvertRequest.Add.class, MemberAdvertRequest.Update.class})
    private Integer columnType;

    /**
     * 广告排序
     */
    @NotNull(message = "广告排序不能为空", groups = {MemberAdvertRequest.Add.class, MemberAdvertRequest.Update.class})
    private Integer sort;

    /**
     * 跳转链接
     */
    private String link;

    /**
     * 广告图片
     */
    @ApiModelProperty(value = "广告图片")
    @NotEmpty(message = "广告图片不能为空", groups = {MemberAdvertRequest.Add.class, MemberAdvertRequest.Update.class})
    private String imageUrl;

    public interface Add {
    }

    public interface Update {
    }
}
